package com.softer.wxzj.entity;

import com.softer.wxzj.entity.base.FieldMeta;
import lombok.Data;

import java.util.List;

@Data
public class BaseCellInfo implements Comparable<BaseCellInfo> {
    @FieldMeta(name = "id")
    private String id;
    @FieldMeta(name = "自然幢id")
    private String buildNo;
    @FieldMeta(name = "单元编号")
    private String cellNo;
    @FieldMeta(name = "单元名称")
    private String cellName;
    @FieldMeta(name = "状态")
    private String state;
    @FieldMeta(name = "电梯")
    private String elevator;
    @FieldMeta(name = "地上层数")
    private Integer overFloor;
    @FieldMeta(name = "地上层每层户数")
    private Integer overPerFloor;
    @FieldMeta(name = "地下层数")
    private Integer underFloor;
    @FieldMeta(name = "地下层每层户数")
    private Integer underPerFloor;
    @FieldMeta(name = "备注")
    private String remark;
    @FieldMeta(name = "预售证编号")
    private String presellNo;
    @FieldMeta(name = "创建日期")
    private String createTime;
    @FieldMeta(name = "修改日期")
    private String updateTime;
    @FieldMeta(name = "单元")
    private String cellType;
    /**
     * 初始楼层
     */
    @FieldMeta(name = "初始楼层")
    private String startFloor;
    /**
     * 结束楼层
     */
    @FieldMeta(name = "结束楼层")
    private String endFloor;
    private String fuzzy;
    /**
     * 楼层数
     */
    @FieldMeta(name = "楼层数")
    private String floorNum;
    /**
     * 户数
     */
    @FieldMeta(name = "每层户数")
    private String houseNum;
    /**
     * 编号
     */
    @FieldMeta(name = "编号")
    private String cellTypeNo;
    /**
     * 房屋类型code
     */
    @FieldMeta(name = "单元类型")
    private String cellTypeCode;
    @FieldMeta(name = "房屋")
    private List<BaseHouseInfo> houseList;
    /**
     * 最大户数没缴存
     */
    @FieldMeta(name = "最大户数没缴存")
    private String maxFloor;
    /**
     * 最小户数没缴存
     */
    @FieldMeta(name = "最小户数没缴存")
    private String minFloor;
    /**
     * 最小房间号没缴存
     */
    @FieldMeta(name = "最小房间号没缴存")
    private String maxRoomNo;
    /**
     * 变更时自然妆id
     */
    private String businessId;
    private int num;
    private String rId;
    private String reqNo;
    private String creater;

    @Override
    public int compareTo(BaseCellInfo o) {
        int i = Integer.parseInt(this.getCellNo()) - Integer.parseInt(o.getCellNo());//先按照年龄排序
        return i;
    }
}
